package fr.pascal.idComposite1;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
public class Contact {

	@EmbeddedId
	private ContactPK contactPK;
	private int age;
	private String pays;

	public Contact() {
	}

	public Contact(String prenom, String nom) {
		ContactPK pk = new ContactPK();
		pk.setPrenom(prenom);
		pk.setNom(nom);
		setContactPK(pk);
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getPays() {
		return pays;
	}

	public void setPays(String pays) {
		this.pays = pays;
	}

	public ContactPK getContactPK() {
		return contactPK;
	}

	public void setContactPK(ContactPK contactPK) {
		this.contactPK = contactPK;
	}
}
